package com.miaoxun.service;

import com.miaoxun.domain.entity.User;
import com.miaoxun.domain.model.UserModel;
import com.miaoxun.domain.param.UserParam;

import java.util.List;

/**
 * @author ruoshuisixue
 * @email ruoshuisixue@sina.com
 * @date 2017-11-17 14:38:42
 */
public interface UserService extends BaseService<User> {


    List<User> listByDept(UserParam param);

    User findByUsername(String username);

    boolean resetPwd(User user);

    UserModel findUserDeptById(Long id);


    boolean updateUserAndRole(UserParam user);

    boolean exit(String params);

    boolean addUserAndRole(UserParam param);

    boolean deleteUserAndRoleById(Long id);









}
